<template>
  <div class="info">
    <el-form label-width="120px">
      <el-form-item label="公司名称">
        <el-input v-model="companyInfo.name" disabled />
      </el-form-item>
      <el-form-item label="公司地址">
        <el-input v-model="companyInfo.companyAddress" disabled />
      </el-form-item>
      <el-form-item label="公司邮箱">
        <el-input v-model="companyInfo.mailbox" disabled />
      </el-form-item>
      <el-form-item label="备注">
        <el-input
          v-model="companyInfo.remarks"
          type="textarea"
          :rows="3"
          disabled
        />
      </el-form-item>
    </el-form>
  </div>
</template>
<script>
import { company } from '@/api/setting'
export default {
  data() {
    return {
      companyInfo: ''
    }
  },
  async created() {
    const res = await company(this.$store.state.login.userInfo.companyId)
    this.companyInfo = res.data
    console.log('企业数据', res)
  }
}
</script>
<style lang="scss" scoped>
.info {
  padding: 30px 15px;
  width: 600px;
  margin: 0 auto;

}

</style>
